{ INFORMATICS.MCCME.RU
  Problem statement: http://informatics.mccme.ru/moodle/mod/statements/view3.php?chapterid=259
  Verdict: Accepted
}
uses SysUtils, Math;
 
var
	a:int64;
 
begin
reset(input,'input.txt');
rewrite(output,'output.txt');
read(a);
if a=1 then write('YES') else
if (a=0) or (a mod 4>0) then write('NO') else write('YES');
end.